﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLogicLayer;
namespace logicunivesityinventorystore.Store
{
    public partial class TrackOrder : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void lbtnView_Click(object sender, EventArgs e)
        {
            GridViewBind();

        }

        private void GridViewBind()
        {
            gvTrackList.DataSource = new RetrivalListFacade().FindRetrivalListDetailsByID(txtDisbursementNo.Text);
            gvTrackList.DataBind();
            lblDateFulFilled.Text = new RetrivalListFacade().FindFullFilledDateByID(txtDisbursementNo.Text);
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            txtDisbursementNo.Text = Convert.ToString(Session["DisbursementNo"]);
            //string utput = String.IsNullOrEmpty(System.Web.HttpContext.Current.Session["DisbursementNo"].ToString()) ? String.Empty : System.Web.HttpContext.Current.Session["DisbursementNo"].ToString();
            GridViewBind();
            Session["DisbursementNo"] = null;
        }
    }
}